<%@ page language="java" import="java.util.*" import="java.sql.*" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<div class="modal fade" id="upxtModal<%=id%>" tabindex="-1" aria-labelledby="upModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="upModalLabel<%=id%>">修改影院</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form action="ad_xitong.jsp" method="post">
                    <div class="form-group" style="display: none">
                        <label for="name">ID:</label>
                        <input type="text" value="<%=id%>" name="u_id" required class="form-control" id="id">
                    </div>
                    <div class="form-group">
                        <label for="name">影院名称:</label>
                        <input type="text" value="<%=name%>" name="u_name" required class="form-control" id="name">
                    </div>


                    <div class="form-group">
                        <label for="pinp">品牌:</label>
                        <select class="form-control" name="u_pinp" id="pinp">
                            <%
                                String[] s = new String[]{"万达影城","百老汇影城","环球影城","万象影城"};
                                for (int i = 0; i<s.length;i++){
                            %>
                                <option <%if (s[i].equals(pinp)){%> selected <%}%>  ><%=s[i]%></option>
                            <%
                            }%>

                        </select>
                    </div>
                    <div class="form-group">

                        <label for="xzq">行政区:</label>
                        <select class="form-control" name="u_xzq" id="xzq">
                            <%
                                String[] s2 = new String[]{"地铁附近","朝阳区","海淀区","丰台区","昌平区","通州区"};
                                for (int i = 0; i<s2.length;i++){
                            %>
                            <option <%if (s2[i].equals(xzq)){%> selected <%}%>  ><%=s2[i]%></option>
                            <%
                                }%>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="leix">类型:</label>
                        <select class="form-control" name="u_leix" id="leix">
                            <%
                                String[] s3 = new String[]{"IMAX厅","4K厅","4D厅"};
                                for (int i = 0; i<s3.length;i++){
                            %>
                            <option <%if (s3[i].equals(leix)){%> selected <%}%>  ><%=s3[i]%></option>
                            <%
                                }%>

                        </select>
                    </div>
                    <div class="form-group">
                        <label for="fuw">服务:</label>
                        <select class="form-control" name="u_fuw" id="fuw">
                            <%
                                String[] s4 = new String[]{"改签","退票","改签/退票"};
                                for (int i = 0; i<s4.length;i++){
                            %>
                            <option <%if (s4[i].equals(leix)){%> selected <%}%>  ><%=s4[i]%></option>
                            <%
                                }%>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="jvli">距离:</label>
                        <input type="text" value="<%=jvli%>" name="u_jvli" required class="form-control" id="jvli">
                    </div>
                    <div class="form-group">
                        <label for="qian">最低金额:</label>
                        <input type="number" value="<%=qian%>" name="u_qian" required class="form-control"
                               id="qian">
                    </div>
                    <div class="form-group">
                        <label for="dizhi">地址:</label>
                        <input type="text" value="<%=dizhi%>" name="u_dizhi" required class="form-control"
                               id="dizhi">
                    </div>
                    <div class="form-group">
                        <label for="phone">电话:</label>
                        <input type="text" value="<%=phone%>" name="u_phone" required class="form-control"
                               id="phone">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                        <button type="submit" class="btn btn-primary">确认</button>
                    </div>
                </form>

            </div>

        </div>
    </div>
</div>
<script>
    function xiugai(id) {
        console.log(id)
    }
</script>
